package com.cos.demo2.entity;

/**
 * @author: COS
 * @time: 2021/5/17 9:36
 * @description:
 */
public class Address {
    private Integer id;
    private String address;

    @Override
    public String toString() {
        return "Address{" +
                "id=" + id +
                ", address='" + address + '\'' +
                '}';
    }

    public void init(){
        System.out.println("初始化");
    }
    public void destory(){
        System.out.println("销毁了");
    }

    public Address() {
        System.out.println("执行无参构造方法");
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        System.out.println("设值了");
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
